package com.tch.service;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.apache.logging.log4j.core.util.ExecutorServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.tch.dao.Bookdao;


@Service
@Scope("prototype")
public class BookServiceimp  implements  BookService{
@Autowired
public Bookdao bookdao;

public void getPrice(){
	System.out.println("in service");
	bookdao.bookPrice(1111);
	String price = bookdao.findBookBybookname();
	System.out.println(price);
}

public void saveBook(int num){
		bookdao.save(num);
}



}
